package yl.hs.bmipfull.daos.laboratorydata;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import yl.hs.bmipfull.daos.BaseDao;
import yl.hs.bmipfull.pojo.laboratorydata.LabExperimentDefinitionlibsEntity;
import yl.hs.bmipfull.pojo.laboratorydata.LabExperimentItemsEntity;
import yl.hs.bmipfull.pojo.material.PurchaseContractEntity;
import yl.hs.bmipfull.pojo.production.ProductionTaskEntity;

import java.util.List;
import java.util.Map;

/**
 * 作用:   <br/>
 * 创建时间: 2022-06-20 08:51 <br/>
 *
 * @author 吴高丰
 */
@Repository
public interface ILabExperimentItemsDao extends BaseDao<LabExperimentItemsEntity> {
    /**
     * 分页查询实验检测标准——检测项信息
     *
     * @param map 查询条件 {@link LabExperimentItemsEntity}
     * @return 站内信息-List<{@link LabExperimentItemsEntity}>
     */
    List<LabExperimentItemsEntity> queryPage(@Param("map") Map<String, Object> map, @Param("filters") List<Map<String,Object>> filters);
    /**
     * 查询实验检测标准——检测项信息
     *
     * @param map 查询条件 {@link Map}
     * @return 检测项信息-List<{@link LabExperimentItemsEntity}>
     */
    List<LabExperimentItemsEntity> queryList(@Param("map") Map<String, Object> map,@Param("filters") List<Map<String,Object>> filters);
    /**
     * 查询实验检测标准——检测项信息
     *
     * @param definitionSN 查询条件 {@link String}
     * @return 检测项信息-List<{@link LabExperimentItemsEntity}>
     */
    List<LabExperimentItemsEntity> queryListByDefinitionSN(@Param("definitionSN") String definitionSN);
    /**
     * 查询实验检测标准——检测项信息
     *
     * @param query 查询条件 {@link Map}
     * @return 检测项信息-List<{@link LabExperimentItemsEntity}>
     */
    Integer queryCountByCondition(@Param("map") Map<String, Object> query,@Param("filters") List<Map<String,Object>> filters);

    List<LabExperimentItemsEntity> queryByParentSN(@Param("parentSN")String parentSN);

    Integer deleteBySn(@Param("sn")String sn);
}
